package com.hsu.friend.controller.exam;

import com.hsu.common.core.controller.BaseController;
import com.hsu.common.core.domain.TableDataInfo;
import com.hsu.friend.domain.exam.dto.ExamQueryDTO;
import com.hsu.friend.service.exam.IExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Hsu琛君珩
 * @Date 2025-04-18 15:07
 * @Description
 * @Version: v1.0.0
 */
@RestController
@RequestMapping("/exam")
public class ExamController extends BaseController {

    @Autowired
    private IExamService examService;

    @GetMapping("/semiLogin/list")
    public TableDataInfo list(ExamQueryDTO examQueryDTO) {
        return getTableDataInfo(examService.list(examQueryDTO));
    }

    @GetMapping("/semiLogin/redis/list")
    public TableDataInfo redisList(ExamQueryDTO examQueryDTO) {
        return examService.redisList(examQueryDTO);
    }

}
